<%--
  Created by IntelliJ IDEA.
  User: namelessman
  Date: 2022/11/28
  Time: 22:51
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html; charset=UTF-8" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ page isELIgnored="false" %>
<html>
<head>
    <title>所有用户</title>
</head>
<body>
<h1>所有用户</h1>
<table>
    <tr>
        <th>ID</th>
        <th>用户名</th>
        <th>操作</th>
    </tr>
    <c:forEach items="${list}" var="user">
        <tr>
            <td>${user.id}</td>
            <td>${user.name}</td>
            <td>
                <a href="update/${user.id}">修改</a> <a href="delete/${user.id}">删除</a>
            </td>
        </tr>
    </c:forEach>
</table>
<a href="add.jsp">添加用户</a>
</body>
</html>
